<%-- 
    Document   : leftsideMenu
    Created on : May 11, 2012, 8:21:07 PM
    Author     : DAIDUONG
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!-- BEGIN left side menus -->
    <div class="menu_block"> 
      
      <!-- BEGIN categories menu -->
      <div class="hc" id="cat_menu_button"><a href="">Categories</a></div>
      <ul id="category_menu">
        <%int i=0; %>
      	<s:iterator value="categoryList" var="parent">
					<s:if test="#parent.parentId == 0"> 
						<li><a href="boxViewMode"><span><span><s:property value="#parent.name"/></span></span></a>
								<s:iterator value="categoryList" var="child" status="sta">
									
									<s:if test="#parent.id == #child.parentId">
										
										<%i++; if (i==1){ %>
											<ul class="sub-menu"> 
										<% } %>
										<li><a href="boxViewMode"><span><span><s:property value="#child.name"/></span></span></a></li>
									</s:if>
									
									<s:if test="#sta.last == true"><%if (i!=0){%></ul> <%i=0;} %> </s:if>
								</s:iterator>							
						</li>
					</s:if> 
						
		</s:iterator>
      </ul>
      
      <!-- END categories menu --> 
      
      <!--BEGIN newletter form -->
      <div class="newsletterbutton  hc">
        <div class="square"></div>
        <a href="">Newsletter</a></div>
      <div class="nwsl_box">
        <div id="nwsl_text">
          <div class="newslettertext">Sign up for our weekly newsletter and stay<a href="#">up-to-date</a>with  the latest offers, and newest.</div>
        </div>
        <div class="nws_form">
          <form method="post" action="index.html">
            <input type="text" class="email"  value="E-m@il address" 
						onfocus="if(this.value=='E-m@il address')this.value=''"
                        onblur="if(this.value=='')this.value='E-m@il address'" 
						/>
            <br />
            <input type="submit" class="subscribe"  value="Subscribe"/>
          </form>
        </div>
      </div>
      <div class="nwsl_border"></div>
      <!--END newletter form --> 
      
      <!--BEGIN payments icons -->
      <div class="payments">
        <div id="paypal"></div>
        <div id="visa"></div>
        <div id="mastercard"></div>
      </div>
      <!--END newletter form --> 
      
      <!-- END left side menus --> 
    </div>